package com.ruoyi.patrol.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡查计划对象 patrol_plan
 * 
 * @author yepanpan
 * @date 2025-05-08
 */
@Data
public class PatrolPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 区域 */
    @Excel(name = "区域")
    private String deptName;
    @NotNull
    private Long deptId;

    /** 路线名称 */
    @Excel(name = "路线名称")
    @NotNull
    private String name;

    /** 路径 */
    @Excel(name = "路径")
    private String pathName;
    private Long pathId;

    /** 周期 */
    @Excel(name = "周期", dictType="cycle_type", comboReadDict=true)
    private String cycle;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date beginDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date endDate;

    /** 巡查人 */
    @Excel(name = "巡查人")
    @NotNull
    private Long userId;

    /** 巡查人 */
    @Excel(name = "巡查人")
    private String userName;

    /** 状态 */
    @Excel(name = "状态", dictType="cycle_type", comboReadDict=true)
    private String status;

}
